package com.ermao.learnWebmagic.config;

import com.ermao.learnWebmagic.entity.Video;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;

public class Client {
	public static void main(String[] args) {
		ArrayList<String> list = new ArrayList<>(10);
		Class<Video> clazz = Video.class;
		Field[] fields = clazz.getDeclaredFields();
		for (Field field : fields) {
			field.setAccessible(true);
			list.add("\"" + field.getName() + "\"");
		}
		System.out.println(Arrays.toString(list.toArray(new String[0])));
	}
}
